import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		load: true,
		arr: [],
		sc: 1,
		topH: 0
	},
	mutations: {
		setload(state, v) {
			state.load = v
		},
		setarr(state, v) {
			state.arr.push(v)
		},
		setsc(state, v) {
			state.sc = v
		},
		settoph(state, v) {
			state.topH = v
		}
	},
	actions: {},
	modules: {}
})
